package com.example.demo.respository;

import com.example.demo.model.AppData;
import com.example.demo.model.json.VideoApp;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;

public interface VideoAppRepository extends CrudRepository<VideoApp, Long> {


//    @Query(value = "select app0_.id as id1_0_,  app0_.name as name4_0_ from app app0_", nativeQuery = true)  //fail
//    List<AppData> findUserList(String name);
//
//    Iterable<VideoData> findByclassfyId(Long classfyId);//success
//
//    List<AppData> findUserByName(String name, Pageable page);
//    List<AppData> findByname(String name);//success
//    List<AppData> findBynameLike(String name);//success
//    List<User> findAll(Pageable page);
    Page<VideoApp> findAll(Pageable page);
}
